y = zeros(400,1);

for i = 1:100
    y(i) = sin(0.4*i+0.5);
end

for j = 101:400
    y(j) = sin(0.6*j+0.5);
end